<template>
  <TablePagination @pageChanged="onPageChanged"></TablePagination>
</template>

<script>
  //https://blog.csdn.net/qq_30307645/article/details/90416060
  import PageMixins from '@/components/PageMixins'
    export default {
      name: "pagination-test",
      mixins: [PageMixins],
      methods:{
        // 页面改变时，会主动掉头getData，因此必须定义getData函数，
        async getData() {
          // 为params上加入分页参数
          const params={}
          const data = await getAll(this.addPageInfo(params))
          // 处理分页数据
          this.onGotPageData(data)
        }
      }
    }
</script>

<style scoped>

</style>
